import Vue from 'vue'
import App from './App.vue'
import router from './Router'
import store from './store'
import TypeNav from './components/TypeNav'
import Pagination from './components/Pagination'
import Dialog from './components/Dialog'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 启动mock服务器  只要将mockServer/index.js文件引入过来即可
import '@/mockServer'
// 统一引入轮播图的样式 因为轮播图好几个地方会用到
import 'swiper/css/swiper.css'
import VueLazyload from 'vue-lazyload'

import load from './assets/aa.gif'
Vue.use(VueLazyload, {
  // loading: 'dist/loading.gif',
  loading: load,
})
Vue.use(ElementUI);
Vue.config.productionTip = false
Vue.component(TypeNav.name,TypeNav)
Vue.component(Pagination.name,Pagination)
Vue.component(Dialog.name,Dialog)
new Vue({
  beforeCreate(){
    Vue.prototype.$EventBus=this
  },
  render: h => h(App),
  store,
  router
}).$mount('#app')
